<!--
 * @Author: your name
 * @Date: 2021-04-10 18:45:17
 * @LastEditTime: 2021-04-10 19:37:04
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \ws-shop\src\views\About.vue
-->
<template>
  <div class="about">
    <div class="about-version">
      <div class="pic">
        <img src="https://img1.baidu.com/it/u=2597111984,833643281&fm=26&fmt=auto&gp=0.jpg" alt="">
        <p>版本：7.7.2</p>
      </div>
    </div>
    <div class="about-main">
      <ul>
        <li>
          <van-cell is-link @click="showYin">隐私</van-cell>
          <van-popup v-model="show1" round position="bottom" :style="{ height: '20%'}">欢迎您使用我们的产品和服务！我们深知个人信息对您的重要性，您的信任对我们非常重要。我们将以最佳实践为您的个人信息安全提供充分保障。</van-popup>
        </li>
        <li>
          <van-cell is-link @click="showPopup">检测更新</van-cell>
          <van-popup v-model="show2" round position="bottom" :style="{ height: '10%'}">已是最新版本</van-popup>
        </li>
      </ul>
      <p>使用协议</p>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      show1: false,
      show2: false
    }
  },
  methods: {
    showPopup () {
      this.show2 = true
    },
    showYin () {
      this.show1 = true
    }
  }
}
</script>

<style lang="scss">
.about {
  width: 100%;
  height: 100%;
  background: url('https://img0.baidu.com/it/u=2591908592,557434822&fm=11&fmt=auto&gp=0.jpg');
  background-size: 100% 100%;
  .about-version {
    width: 100%;
    height: 50%;
    .pic {
      width: 30%;
      height: 35%;
      padding: 35%;
      text-align: center;
      img {
        width: 90%;
        height: 90%;
      }
      p {
        font-size: 16px;
        color:black;
        line-height: 2;
      }
    }
  }
  .about-main {
    ul {
      li {
        list-style: none;
        align-items: center;
        height: 50px;
        margin-bottom: 2px;
        .van-cell {
          width: 100%;
          height: 100%;
          line-height: 30px;
          background-color: rgba($color: #fff, $alpha: 0.4);
        }
        .van-popup {
          box-sizing: border-box;
          padding:20px;
          text-align: center;
        }
      }
    }
    p {
      color: orange;
      font-weight: 800;
      font-size: 18px;
      line-height: 2;
      text-align: center;
    }
  }
}
</style>
